class calc:
    def __init__(self):
        self.firstnum = '1'
        self.secondnum = '2'
        self.operator = '+'

    def excute(self):
        if self.operator == '+':
            self.firstnum = str(int(self.firstnum) + int(self.secondnum))
        elif self.operator == '-':
            self.firstnum = str(int(self.firstnum) - int(self.secondnum))
        elif self.operator == '*':
            self.firstnum = str(int(self.firstnum) * int(self.secondnum))
        elif self.operator == '/':
            self.firstnum = str(int(self.firstnum) / int(self.secondnum))
        self.secondnum = ''
        self.operator = ''
    def equalClick(self):
        self.excute()
    def cleanClick(self):
        self.firstnum = ''
        self.secondnum = ''
        self.operator = ''
    def plusClick(self):
        if self.firstnum.strip() == '':
            self.firstnum = '0'
            self.operator = '+'
        elif self.secondnum.strip() != '':
            self.secondnum.rstrip('.')
            self.excute()
            self.operator = '+'
        else:
            self.firstnum.rstrip('.')
            self.operator = '+'
    def zeroClick(self):
        if self.operator.strip() == '':
            if self.firstnum.strip() == '':
                self.firstnum = '0'
            else:
                self.firstnum += '0'
        else:
            self.secondnum += '0'
    def oneClick(self):
        if self.operator.strip() == '':
            if self.firstnum.strip() == '':
                self.firstnum = '1'
            else:
                self.firstnum += '1'
        else:
            if self.secondnum.strip() == '':
                self.secondnum = '1'
            else:
                self.secondnum += '1'
    def twoClick(self):
        if self.operator.strip() == '':
            if self.firstnum.strip() == '':
                self.firstnum = '2'
            else:
                self.firstnum += '2'
        else:
            if self.secondnum.strip() == '':
                self.secondnum = '2'
            else:
                self.secondnum += '2'
    def pointClick(self):
        if self.operator.strip() == '':
            if self.firstnum.strip() == '':
                self.firstnum = '0.'
            else:
                if '.' in self.firstnum:
                    pass
                else:
                    self.firstnum += '.'
        else:
            if self.secondnum.strip() == '':
                self.secondnum = '0.'
            else:
                if '.' in self.secondnum:
                    pass
                else:
                    self.secondnum += '.'

c = calc()
# c.oneClick()
# c.twoClick()
# print c.firstnum
# c.plusClick()
# c.oneClick()
# c.equalClick()
print c.firstnum
print c.operator
print c.secondnum
print c.firstnum,c.operator,c.secondnum
print c.firstnum+c.operator+c.secondnum
